package com.by;

import com.by.entity.User;
import com.by.services.Util;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author LittleDesire
 * @description
 * @date 2022-03-21 周一 10:22
 * @since 17
 */

public class App {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("spring.xml");
        User user = ctx.getBean(User.class);
        Util util = ctx.getBean(Util.class);
        System.out.println(user);
        System.out.println(util);

        int pf = util.pf();
        System.out.println(pf);
    }
}
